package entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljc
 * @since 2023-02-28
 */
@Getter
@Setter
@TableName("order_item")
@ApiModel(value = "OrderItem对象", description = "")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("关联订单表的id的外键")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("订单项中的商品编号id")
    @TableField("goods_id")
    private Integer goodsId;

    @ApiModelProperty("购买的数量")
    @TableField("item_num")
    private Integer itemNum;

    @ApiModelProperty("商品总价")
    @TableField("item_total")
    private BigDecimal itemTotal;

    @ApiModelProperty("联系人id")
    @TableField("con_id")
    private Long conId;

    @ApiModelProperty("支付金额")
    @TableField("pay_money")
    private BigDecimal payMoney;

    @ApiModelProperty("优惠金额")
    @TableField("preferential_amount")
    private BigDecimal preferentialAmount;

    @ApiModelProperty("运费金额")
    @TableField("transportatio_expenses")
    private BigDecimal transportatioExpenses;
}
